<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<jsp:include page="../frame/header.jsp"></jsp:include>
<style>
	table tr td.right{
		text-align:right !important;
		font-weight:bold;
		
	}
</style>
<title>查看系统消息</title>
</head>

<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div>
				<ul class="breadcrumb">
					<li><a href="#">消息管理</a> <span class="divider">/</span></li>
					<li><a href="#">查看消息</a></li>
				</ul>
			</div>

			<div class="box">
				<div class="box-header well" data-original-title>
					<h2>
						<i class="icon-edit"></i> 查看消息
					</h2>
					<div class="box-icon">
						<a href="#" class="btn btn-setting btn-round"><i
							class="icon-cog"></i></a> <a href="#"
							class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
						<a href="#" class="btn btn-close btn-round"><i
							class="icon-remove"></i></a>
					</div>
				</div>
				<div class="box-content">
					<table class="table">
						<tr>
							<td class="right">发送者：</td>
							<td>&nbsp;</td>
							<td>${message.fromUserName }</td>
						</tr>
						<tr>
							<td class="right">接收者：</td>
							<td>&nbsp;</td>
							<td>${message.toUserName }</td>
						</tr>
						<tr>
							<td class="right">发送时间：</td>
							<td>&nbsp;</td>
							<td>${message.sendTime }</td>
						</tr>
						<tr>
							<td class="right">消息类型：</td>
							<td>&nbsp;</td>
							<td>${message.messageType == 0 ? "系统消息" : (message.messageType == 1 ? "提醒消息":"私信") }</td>
						</tr>
						<tr>
							<td class="right">消息内容：</td>
							<td>&nbsp;</td>
							<td>${message.message }</td>
						</tr>
					</table>
				</div>
				<form class="form-horizontal">
				<fieldSet>
				<div class="form-actions">
								<button id="cancelBtn" type="button" class="btn">返回</button>
							</div>
						</fieldset>
					</form>
			</div>
			<!--/span-->

		</div>
	</div>
	<!--/row-->
</body>

<jsp:include page="../frame/scripts.jsp"></jsp:include>
<script type="text/javascript">
$(document).ready(function(){
	$('#cancelBtn').click(function(){
		window.location.href = '<c:url value="/admin/message/message" />';	
	})
	
	
})
</script>